package com.hoperun.framework.models;

import java.io.Serializable;

public class DataView implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private int code = 0;

	private String message = "操作失败!";

	private Object data;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	@Override
	public String toString() {
		return "DataView [code=" + code + ", message=" + message + ", data="
				+ data + "]";
	}
}
